package demo1;

public class TestDemo1 {
    public static void main(String[] args) {
        //创建指挥者，指挥者指挥工人建造房子
        Director director = new Director();
        //创建实际建造者
        Worker worker = new Worker();
        Product build = director.build(worker);
        System.out.println(build.toString());
    }
}
